#ifndef SORT_CORE_H
#define SORT_CORE_H


#include <htslib/sam.h>
#include <htslib/bgzf.h>


void coreInit(char *fn);


void coreDestory();


void  readBam2Vector( char *fn , int n_threads);


void  sortVect();


void  outputBam( char *fn , int n_threads );

void  coreInit1( char *fn);


void  readBamOffset2Vector( char *fn , int  tid , int n_threads);


void  sortVect1();

void write_( char **fns , int n_input  ,  char *outPut , int n_threads);


void coreDestory1();

#endif
